
/**
*This software is under LGPL license,
*see http://www.gnu.org/licenses/lgpl-3.0.txt (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>)
*Console.h First issued by chuanshenglu@gmail.com 2008.10
*/

#ifndef __TRSTD_H__
#define __TRSTD_H__

#include <windows.h>
#include <iostream>
#include <fstream>
#include <string>
#include <list>
#include <cstdlib>

using namespace std;

typedef unsigned int uint32;
typedef unsigned short uint16;

typedef struct _Coord{
	uint32 X;
	uint32 Y;
	_Coord(){
		X=0;
		Y=0;
	}
	_Coord(uint32 _x,uint32 _y){
		X=_x;
		Y=_y;
	}
}Coord;

#if defined(_MSC_VER)
#include <TCHAR.h>
inline COORD MakeCOORD(uint32 x,uint32 y){
	COORD coord;
	coord.X=x;
	coord.Y=y;
	return coord;
}
typedef KEY_EVENT_RECORD	KeyboardEvent;
typedef FOCUS_EVENT_RECORD		FocusEvent;
#endif

#if defined(UNICODE) || defined(_UNICODE)
typedef wstring	String;
#else
typedef string		String;
#endif

#endif